package com.zero.service.impl;

import com.zero.dao.IUserDao;
import com.zero.dao.impl.UserDaoImpl;
import com.zero.domain.User;
import com.zero.service.IUserLoginService;

/**
 * @author Administrator
 */
public class UserLoginServiceImpl implements IUserLoginService {
    @Override
    public boolean login(User user) {
        int count = 0;
        IUserDao userDao = new UserDaoImpl();
        count = userDao.findCount(user);
        return (count == 1);
    }

}
